


// type propsType = {
//     count: number | string
// }



interface propsType {
    count?: number | string
    name: number | string
}

const Child1 = (props: propsType) => {
    const { count, name } = props

    return <div>
        <h1> 这是子组件1 {count} </h1>
        <h2> name: {name} </h2>
    </div>
}

export default Child1